package com.yiwyn.demo.domain;

import com.yiwyn.demo.utils.modify.anno.modify.ModifyEventField;
import com.yiwyn.demo.utils.modify.anno.modify.ModifyHandleClassField;
import com.yiwyn.demo.utils.modify.anno.modify.ModifyType;
import com.yiwyn.demo.utils.modify.handle.event.ShopModifyTypeEvent;
import com.yiwyn.demo.utils.modify.handle.handleClass.ComCdeHandle;
import lombok.Data;

@Data
@ModifyType(value = "Shop", typeEventClazz = ShopModifyTypeEvent.class)
public class Shop {

    private String shopId;

    private String shopName;

    @ModifyEventField(filedType = "address", eventId = ShopModifyTypeEvent.EVENT_ADDRESS)
    private String shopAddress;

    private String shopPhone;

    @ModifyHandleClassField(filedType = "shopEmail", handleClass = ComCdeHandle.class)
    private String shopEmail;

    @ModifyHandleClassField(filedType = "openSts", handleClass = ComCdeHandle.class)
    private String openStatus;
}
